﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace Shlook.Common
{
    public class Logger
    {
        private readonly TextWriter _stream;

        public static Logger Default = new Logger(Console.Error);

        public Logger(TextWriter stream)
        {
            _stream = stream;
        }

        public void Log(string message)
        {
            _stream.WriteLine("[" + DateTime.Now.TimeOfDay + "] " + message);
        }
    }
}
